
import { IonicModule } from '@ionic/angular';
import { RouterModule } from '@angular/router';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { SharedModule } from '../../shared/shared.module';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NgxEchartsModule } from 'ngx-echarts';

import { MyPage } from './my';
import { MePageRoutingModule } from './my-routing.module';
import { AboutPage } from '@pages/my/about/about';
import { SetPage } from '@pages/my/settings/settings';
import { PersonInfoPage } from '@pages/my/person-info/person-info';
import { ScorePage } from '@pages/my/score/score';
import { InstallPage } from '@pages/my/score/install/install';
import { MonitorPage } from '@pages/my/score/monitor/monitor';
import { InstallationPage } from '@pages/my/score/installation/installation';
import { InstallSelectPage } from '@pages/my/score/installSelect/installSelect';
import { InstrumentPage } from '@pages/my/score/instrument/instrument';
import { PersonalManagerPage } from '@pages/my/personal-manager/personal-manager';
import { LeaderToPage } from './personal-manager/leader-to/leader-to';
import { PopoverPage } from './personal-manager/popover/popover';
import { AskLeavePage } from './personal-manager/ask-leave/ask-leave';

import { VoiceModalModule } from '@modals/select-voice/select-voice.module';
import { UserInfoModalModule } from '@modals/user-info/user-info.module';
import { ChangePhoneModalModule } from '@modals/user-info/change-phone/change-phone.module';
import { WirelessModalModule } from '@modals/wire-less/wire-less.module';
import { DeploymentComponentModule } from '@components/key-deployment/key-deployment.module';
import { InstallProcessComponentModule } from '@components/process-bar/process-bar.module';
import { DateChangeComponentModule } from '@components/date-change/date-change.module';
import { AlarmItemComponentModule } from '@components/alarm-item/alarm-item.module';
import { LeaderComponentModule } from '@pages/my/personal-manager/leader/leader.module';
import { StaffComponentModule } from '@pages/my/personal-manager/staff/staff.module';
import { TaskPage } from '@pages/my/task/task';
import { VideoModalModule } from '@modals/alarm-video/alarm-video.module';

import { AlarmDetailPageModule } from '@components/alarm-detail/alarm-detail.module';
import { SelectOptionComponentModule } from '@components/select-option/select-option.module';


@NgModule({
  imports: [
    IonicModule,
    CommonModule,
    FormsModule,
    SharedModule,
    MePageRoutingModule,
    VoiceModalModule,
    UserInfoModalModule,
    ChangePhoneModalModule,
    WirelessModalModule,
    NgxEchartsModule,
    DeploymentComponentModule,
    InstallProcessComponentModule,
    AlarmItemComponentModule,
    DateChangeComponentModule,
    LeaderComponentModule,
    StaffComponentModule,
    AlarmDetailPageModule,
    VideoModalModule,
    SelectOptionComponentModule,
    RouterModule.forChild([{ path: '', component: MyPage }])
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [MyPage, PersonInfoPage, SetPage, AboutPage, ScorePage, InstallPage, MonitorPage,
    InstallationPage, InstallSelectPage, InstrumentPage, TaskPage, PersonalManagerPage, LeaderToPage, PopoverPage, AskLeavePage],
})
export class MyPageModule { }
